package bll

import (
	"jgt-oper/src/model"
	"jgt-oper/src/schema"
)

// EmployeeBll 员工管理
type EmployeeBll struct {
	EmployeeModel model.IEmployee `inject:"IEmployee"`
}

// QueryPage 查询分页
func (a *EmployeeBll) QueryPage(params map[string]interface{}) (int, interface{}, error) {
	return a.EmployeeModel.QueryPage(params)
}

// QueryDetail 查询详情
func (a *EmployeeBll) QueryDetail(userID string) (*schema.User, error) {
	return a.EmployeeModel.QueryDetail(userID)
}
